package com.example.administrator.yuejian35.Find.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by JUSTIN on 2017/10/7.
 */

public class Post implements Parcelable {


    /**
     * pid : 1
     * uid : 2
     * hit : 3234
     * content : 只有拥有健康向上的心理才能克服各种困难，遇到困难不屈服。
     * date : 2017-05-15
     * picid : 1
     * pic : 1.jpg
     * uname : 蒋欣一
     * password : 12345
     * sex : 2
     * tel : 13342255672
     * userpic : 50.jpg
     * intro : 哈哈哈，最近简直太开心了！
     * address : 大连青泥洼桥67号
     * freeze : 2
     */

    private String pid;
    private String uid;
    private String hit;
    private String content;
    private String date;
    private String picid;
    private String pic;
    private String uname;
    private String password;
    private String sex;
    private String tel;
    private String userpic;
    private String intro;
    private String address;
    private String freeze;

    protected Post(Parcel in) {
        pid = in.readString();
        uid = in.readString();
        hit = in.readString();
        content = in.readString();
        date = in.readString();
        picid = in.readString();
        pic = in.readString();
        uname = in.readString();
        password = in.readString();
        sex = in.readString();
        tel = in.readString();
        userpic = in.readString();
        intro = in.readString();
        address = in.readString();
        freeze = in.readString();
    }

    public static final Creator<Post> CREATOR = new Creator<Post>() {
        @Override
        public Post createFromParcel(Parcel in) {
            return new Post(in);
        }

        @Override
        public Post[] newArray(int size) {
            return new Post[size];
        }
    };

    public void setPid(String pid) {
        this.pid = pid;
    }

    public void setUid(String uid) {
        this.uid = uid;
    }

    public void setHit(String hit) {
        this.hit = hit;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public void setPicid(String picid) {
        this.picid = picid;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public void setUserpic(String userpic) {
        this.userpic = userpic;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public void setFreeze(String freeze) {
        this.freeze = freeze;
    }

    public String getPid() {
        return pid;
    }

    public String getUid() {
        return uid;
    }

    public String getHit() {
        return hit;
    }

    public String getContent() {
        return content;
    }

    public String getDate() {
        return date;
    }

    public String getPicid() {
        return picid;
    }

    public String getPic() {
        return pic;
    }

    public String getUname() {
        return uname;
    }

    public String getPassword() {
        return password;
    }

    public String getSex() {
        return sex;
    }

    public String getTel() {
        return tel;
    }

    public String getUserpic() {
        return userpic;
    }

    public String getIntro() {
        return intro;
    }

    public String getAddress() {
        return address;
    }

    public String getFreeze() {
        return freeze;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeString(pid);
        parcel.writeString(uid);
        parcel.writeString(hit);
        parcel.writeString(content);
        parcel.writeString(date);
        parcel.writeString(picid);
        parcel.writeString(pic);
        parcel.writeString(uname);
        parcel.writeString(password);
        parcel.writeString(sex);
        parcel.writeString(tel);
        parcel.writeString(userpic);
        parcel.writeString(intro);
        parcel.writeString(address);
        parcel.writeString(freeze);
    }
}
